package com.chdwmp.product.mapper;

import com.chdwmp.product.bean.User;
import com.chdwmp.product.bean.UserListSearch;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Auther: LLL
 * @Date: 2021/3/6 15:16
 * @Description:
 */
@Mapper
public interface UserMapper {


    int queryUserIsExits(String username);

    User queryUserPo(String username);

    void insertUser(User user);

    void updateUser(User user);

    int queryTotalCount(UserListSearch search);

    List<User> queryUserList(UserListSearch search);

    void deleteUser(String id);

    int queryUserIsExitsForUpdate(@Param("id") String id, @Param("userName") String userName);
}
